namespace HEFramework
{
    namespace Event
    {
        [Event(eSceneType.Game)]
        public class Round_Add_Logic : AEvent<Scene, Round_Add>
        {
            protected override async HETask Run(Scene _scene, Round_Add _a)
            {
                //验证回合数
                var dc = _scene.GetChild<DataTableComponent>();
                if (dc == null)
                {
                    return;
                }

                var gData = dc.GetDataTable<DRGlobalSettings>();
                //验证是否改生成Boss了
                if (_a.Round_Count != 0 && _a.Round_Count % gData.GetData((int)eGlobalSetting.Boss_Generate_Rounds).Value1 == 0)
                {
                }


                //是时候发放遗物了
                var legacyLottery = _scene.GetChild<LegacyLottery>();
                if (legacyLottery != null)
                {
                    legacyLottery.LotteryCount++;
                }
            }
        }
    }
}